<template>
  <PageWrapper>
    <template #headerContent>
      <h1 style="font-size: 20px; line-height: 40px">Ripple示例</h1>
    </template>

    <div class="demo-box" v-ripple>content</div>
  </PageWrapper>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import RippleDirective from '@/directives/ripple'
import { PageWrapper } from '@/components/Page'

export default defineComponent({
  components: { PageWrapper },
  directives: {
    Ripple: RippleDirective
  }
})
</script>

<style lang="scss" scoped>
.demo-box {
  display: flex;
  width: 300px;
  height: 300px;
  font-size: 24px;
  color: #fff;
  background-color: #408ede;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}
</style>
